package com.suray.basic.wcs.plc.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.suray.basic.wcs.plc.enums.RobotStatus;
import lombok.Data;

import java.io.Serializable;

/**
 * @author shaozn
 * @date 2020/2/12 - 15:08
 * @Description 设备基类
 */
@Data
public class Robot implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String data;

    private String district;

    private String location;

    private String no;

    private String name;

    private boolean disable;

    private String ip;

    private Integer port;

    private Integer type;

    private RobotStatus status = RobotStatus.OFF_LINE;

    /**
     * 小车的心跳对象
     */
    @JSONField(serialize = false)
    private RoBotHeartSendBean robotHeart;
}
